package cn.com.open.ms.ecgpaasdatarest.dynamicsql.impl;

import cn.com.open.ms.ecgpaasdatarest.dynamicsql.ParseParameter;
import cn.com.open.ms.ecgpaasdatarest.enums.SQLEnums;

/**
 * @Description in 处理
 * @author 奶茶
 * Created by on 2018/11/29 13:37.
 */
public class INSqlManagement implements ParseParameter {

    @Override
    public String analysisParameterBySQLEnums(String parameterName, Object parameterValue) {
        StringBuilder sqlBuilder = new StringBuilder();
        sqlBuilder.append(SQLEnums.AND.getSqlName()).append(" ").append(parameterName).append(" ").append(SQLEnums.IN.getSqlName());
        sqlBuilder.append(parameterValue).append(" ");
        return sqlBuilder.toString();
    }
}
